package com.ellricky.baselib.ui.order

import android.app.Activity
import com.andr.common.ui.adapter.BaseRecyclerAdapter
import com.andr.common.ui.adapter.SmartViewHolder
import com.ellricky.baselib.R
import com.ellricky.baselib.entity.new.ComplainRecord

class ComplainAdapter(private val context: Activity) :
    BaseRecyclerAdapter<ComplainRecord>(R.layout.base_adapter_common_list) {

    override fun onBindViewHolder(vh: SmartViewHolder?, p1: ComplainRecord?, position: Int) {

        vh?.text(R.id.tvTitle, p1?.complain_name)

        vh?.text(R.id.tvKey, "")
        vh?.text(R.id.tvValue, p1?.complain_tel)

        vh?.text(R.id.tvDateKey, context.getString(R.string.pd_complain_date))
        vh?.text(R.id.tvDate, p1?.complain_createtime)
    }

}